package com.txcb.lib.base.utils;

import android.content.Context;

/**
 * author : joker.peng
 * e-mail : joker@fiture.com
 * date   : 2021/5/10 12:26 PM
 * desc   :
 */
public class ConvertUtils {

    public static int dp2px(final Context context, final float dpValue) {
        final float scale = context.getResources().getDisplayMetrics().density;
        return (int) (dpValue * scale + 0.5f);
    }
}
